﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="createPartner.aspx.cs" Inherits="PHTShop.admin.createPartner" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {

            $('.removeBorder td').css('border', 'none');
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div id="title" class="b2">
        <p>
        </p>
        <h2>
            Create partner</h2>
    </div>

    <div>
      <table class="removeBorder" style="width: 100%; border: none">
                        <tr>
                            <td>
                                <asp:Label ForeColor="BlueViolet" ID="Label1" runat="server" Text="Partner Name"></asp:Label>
                            </td>
                            <td>
                                <input type="text" title="Fusce elementum" id="TextboxPartnerName" name="field1c" runat="server"
                                    class="text" />
                                <span class="required-icon tooltip">Required</span>
                            </td>
                            <td>
                                &nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                  ControlToValidate="TextboxPartnerName"  ErrorMessage="Required" 
                                    Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" ForeColor="BlueViolet" runat="server" Text="Details"></asp:Label>
                            </td>
                            <td>
                                <textarea runat="server" id="TextboxDescription" name="field4b" cols="10" rows="6"></textarea>
                            </td>
                            <td>
                                &nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                 ControlToValidate="TextboxDescription"   ErrorMessage="Required" 
                                    Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
                        </tr>


                         <tr>
                            <td>
                               
                            </td>
                            <td>
                                <asp:Button ID="Button1" CssClass="css_btn_class" runat="server" Text="Save" onclick="Button1_Click" 
                                    Width="73px" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>

        <asp:ListView ID="ListView1" runat="server">

        <LayoutTemplate>
         <table cellspacing="0" id="postList" class="listTable">
					<!-- Thead -->
					<thead>
						<tr>
							<th class="header"><a title="Post" href="#">Partner name</a></th>
							<th class="header"><a title="Post" href="#">Detail</a></th>
							<th class="header"><a title="Post" href="#">Action</a></th>
						</tr>
					</thead>
					<tbody>
						
						
             <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
					</tbody>
                    
					<!-- /Tbody -->
				</table>
        </LayoutTemplate>
        <ItemTemplate>
        <tr>
							<td>
            <a href='<%# "productList.aspx?partnerID="+ Eval("id") %>'> <%# Eval("name") %></a>
            </td>
							<td><%# Eval("details") %></td>
							<td>
                <a href='<%# "editPartner.aspx?id="+Eval("id") %>'>Edit</a>| <a href='<%# "delete.aspx?idPartner="+Eval("id") %>'>Delete</a></td>
						</tr>
        </ItemTemplate>
        </asp:ListView>

    </div>
</asp:Content>
